package com.cxria.pattern.commandAndResponsibilityChain

class FileManager {

    static String ls(String path) {
        'file1\nfile2\nfile3\nfile4'
    }

    static String ls_l(String path) {
        def str = '''
drw-rw-rw root system 1024 2018-9-9 10:28 file1
drw-rw-rw root system 1024 2018-9-9 10:28 file2
drw-rw-rw root system 1024 2018-9-9 10:28 file3
'''
        str
    }

    static String ls_a(String path) {
        '.\n..\nfile1\nfile2\nfile3'
    }

}